<%@ page language="java" import="java.util.*,com.sirenbang.easyshop.config.*" pageEncoding="utf-8"%>
<%@ include  file="/jsps/front/common/taglibs.jsp" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>网络交易系统</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">

	<link rel="stylesheet" type="text/css" href="/jsps/front/css/head.css">
	<script type="text/javascript" src="<c:url value="/js/dtree.js"/>"></script>
	<script type="text/javascript" src="<c:url value="/js/prototype.js"/>"></script>
	<link rel="StyleSheet" href="<c:url value="/jsps/front/css/dtree.css"/>" type="text/css" /> 


  </head>
  
  <body style="background-color: #769b72;">
       <div>
       		<c:import url="/jsps/front/head.jsp"></c:import>
       </div>
        <table width="963px;" border="1" cellpadding="0" cellspacing="0" >
         <tr>
	         <td width="963px"  border="0" cellpadding="0" cellspacing="0">
		         <div id="dtree">
		             <span class="allcate">全部商品分类</span>
					<div class="dtree" id="ctgTree" style="align:center;">
						<p><a href="javascript: d.openAll();">展开折叠</a> | <a href="javascript: d.closeAll();">收缩折叠</a></p>
					
						<script type="text/javascript">
								
							d = new dTree('d');	
					        <c:forEach var="ctg" items="${ctgs}">
					           d.add(${ctg.categoryNo},<c:if test="${ctg.categoryNo==0}">-1</c:if><c:if test="${ctg.categoryNo!=0}">${ctg.categoryParentNo}</c:if> 
					                   ,'${ctg.categoryName}','${ctg.categoryURL}','小提示','contentFrame');
					        </c:forEach>				
							 document.write(d);	
						</script>
					</div>
					<span id="content">
					   <iframe style="width:80%;
							   height:580px;
							   margin:5px;
							   padding:5px;" 
							   frameborder="1" 
							   scrolling="auto" 
							   name="contentFrame" 
							   src="<c:url value="/goodMgr?act=loadAll"/>"></iframe>
					</span>
				</div>
	         </td>
         </tr>
        </table>
        <div id="footer" style="width:963px;border-top:1px solid; COLOR: #404040;COLOR: #666; text-align:center; background-color:#fff;font-size:12px;">
          <%=VersionInfo.buildFooterStr()%>       
         </div>	
  </body>
</html>
